import { useState } from "react";
const FunObj = {
  useCount: function () {
    const [count, setstate] = useState<number>(4);
    const add = () => {
      setstate(count + 1);
    };
    const inr = () => {
      setstate(count - 1);
    };
    const rec = () => {
      setstate(0);
    };
    return { count, add, inr, rec };
  },
};
export default FunObj;
